package com.xd.common.config;


import com.ancun.netsign.client.NetSignClient;
import com.xd.common.properties.AqHtProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class NetSignClientConfig {
    @Autowired
    private AqHtProperties aqHtProperties;

    @Bean
    public NetSignClient netSignClient() {
        return new NetSignClient(aqHtProperties.getApiAddress(), aqHtProperties.getAppid(), aqHtProperties.getPrivatekey());
    }

}
